package com.jh.constructor;

public class XY 
{
	private double x;
	private double y;
	
	public XY() 
	{
		
	}

		
	//생성자 오버로딩
	public XY(double x, double y) 
	{
		super();
		this.x = x;
		this.y = y;
	}

	//은닉화
	public double getX() {
		return x;
	}


	public void setX(double x) {
		this.x = x;
	}


	public double getY() {
		return y;
	}


	public void setY(double y) {
		this.y = y;
	}


	@Override
	public String toString() {
		return "XY [x=" + x + ", y=" + y + "]";
	}
	
	
	
	
}
